package project.mapper;

import project.entity.po.User;
import project.entity.vo.UserVO;

import java.util.List;

public interface UserDao {
    void deleteById(Integer id);

    int insert(User user);

    User selectUserByName(String name);

    List<UserVO> selectAllUsers(List<UserVO> list);

    Boolean selectUserIsHaveByNameAndPassword(String name, String password);

    List<User> selectAllUsersPaging(int pageNo, int pageSize);

    Integer getCount();

    void test();

    User selectUserById(Integer id);

    void deleteUserById(Integer id);

    void deleteUserByName(String name);

    void changePassword(String name, String newPassword);
}
